<template>
  <moon-switch :value="bool" @clickEvent="bool=!bool"></moon-switch>
</template>

<script>
import MoonSwitch from '../lib/MoonSwitch.vue'
export default {
  components: { MoonSwitch },
  data() {
    return {
      bool: false,
      sourceCodeTitle: '基础用法',
      sourceCode:
        `<template>
  <moon-switch :value="bool" @clickEvent="bool=!bool"></moon-switch>
</template>

<script>
import MoonSwitch from '../lib/MoonSwitch.vue'
export default {
  components: { MoonSwitch },
  data() {
    return {
      bool: false
    }
  }
}
</` + 'script>'
    }
  }
}
</script>
